package org.aristotle.demo.model.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@ApiModel("收藏夹")
public class FavoriteVO {

    @ApiModelProperty("收藏夹id")
    @JSONField(name = "id", serializeUsing = ToStringSerializer.class)
    private java.lang.Long id;

    @ApiModelProperty("用户id")
    @JSONField(name = "userId", serializeUsing = ToStringSerializer.class)
    private java.lang.Long userId;

    @ApiModelProperty("图书id")
    @JSONField(name = "bookId", serializeUsing = ToStringSerializer.class)
    private java.lang.Long bookId;

    @ApiModelProperty("备注")
    @JSONField(name = "info")
    private String info;

    @ApiModelProperty("创建时间")
    @JSONField(name = "createTime", format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date createTime;

    @ApiModelProperty("用户")
    @JSONField(name = "user")
    private org.aristotle.demo.model.vo.UserVO user;

    @ApiModelProperty("图书")
    @JSONField(name = "book")
    private org.aristotle.demo.model.vo.BookVO book;

}
